Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

190
Vistas
wrangler dev seems to work, but wrangler publish doesn't work, gets error "Unexpected token p in JSON at position 0"

I'm trying to make a serverless API using workers, and when I run "wrangler dev" in the command line, the local server is made and I am able to go to the page without error. A json object is shown on the page which is what I think I want since it is a "GET" request.

When I run "wrangler publish" and go to the published site, it says "Unexpected token p in JSON at position 0". I've looked at many links and I cannot find how to see what is wrong. In Cloudflare, the the logs show that the GET requests go through.

Does anyone know what I can do next to try and solve this issue? Thank you!

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Figured it out, there was an error when I inspect the page, and I used that in combination with console.logs and the cloudflare worker site to fix the problem

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda